package com.example.book.in.dao;

import com.example.book.base.BaseDao;
import com.example.book.in.entity.UserReadRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author hcj
 */
@Mapper
public interface UserReadRecordDao extends BaseDao<UserReadRecord> {

    List<UserReadRecord> selectRecordDescLimit();

    List<UserReadRecord> selectUserRecordLimit(UserReadRecord readRecord);

    List<UserReadRecord> selectReadRecord(UserReadRecord readRecord);

    UserReadRecord findTheLastRecord(UserReadRecord readRecord);
}